package com;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

/**
 * 服务提供者
 */
@SpringBootApplication
@EnableEurekaClient //只适用于Eureka作为注册中心
//@EnableDiscoveryClient 可以用于其他服务注册中心，如ZK，Consul
public class EurekaServiceClientApplication {
    public static void main(String[] args) {
        SpringApplication.run(EurekaServiceClientApplication.class, args);
    }
}
